package com.vois.jack.btmgr.devices.WLSideKeyDevice;

import com.vois.jack.btmgr.blebase.BleConstant;
import com.vois.jack.btmgr.devices.WLBleBtnDevice.WLBleBtnDevice;

public class WLSideKeyDevice extends WLBleBtnDevice {
    @Override
    protected boolean onKeyProcess(int keyCode, int keyStatus) {
        boolean ret;
        //侧按键 方向键反向
        if (keyCode == 0x41) {
            sendKeyEvent(BleConstant.KEY_NEXT, keyStatus);
            ret = true;
        }else {
            ret = super.onKeyProcess(keyCode, keyStatus);
        }

        return ret;
    }
}
